<?php
/*
|--------------------------------------------------------------------------
| Estate Routes
|--------------------------------------------------------------------------
|
| 小程序物业服务接口
|
*/

use Illuminate\Support\Facades\Route;

Route::namespace('Mini\\Estate')->prefix('Mini/Estate')->middleware('jwt.user')->group(function () {

    //获取首页公告列表
    Route::get('new_notice', 'PublicController@newNotice');
    //获取公告详情
    Route::get('notice/detail/{id}', 'PublicController@noticeDetail');


    //资源路由
    Route::apiResources([
        'repairs'   => 'RepairsController', // 报修
        'complains' => 'ComplainsController', // 物业投诉
    ]);

    //获取跳蚤市场首页轮播图
    Route::get('flea_banner', 'PublicController@fleaBanner');
    //物业缴费
    Route::post('pay', 'PayController@pay');


});
